From: Thiemo Mättig Date: Mon, 20 Apr 2015 13:44:50 +0000 (+0200) Subject: Add @var LoadBalancer[] type doc X-Git-Tag: 1.31.0-rc.0~11547 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=0b79eebfa6a2ed690d9e4e2b134ed139ddd1e62f;p=lhc%2Fweb%2Fwiklou.git Add @var LoadBalancer[] type doc This avoids a good amount of type warnings in certain IDEs, e.g. in my PHPStorm. Change-Id: Id2b99ad48fa2c0d924a1f51b7d2e382eaac7347d --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index cefa37537a..23a8bbbeba 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3755,6 +3755,7 @@ function wfWaitForSlaves( } // Figure out which clusters need to be checked + /** @var LoadBalancer[] $lbs */ $lbs = array(); if ( $cluster === '*' ) { wfGetLBFactory()->forEachLB( function ( LoadBalancer $lb ) use ( &$lbs ) {